package com.dogkr.server.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.dogkr.server.entity.PetServer.RestrainTypeEnum;

public class PetServerRestrain {
    private Long id;

    private Long serverId;
    
    private Long sysId;

    private String restrainName;

    private BigDecimal restrainVal;

    private Short restrainType;
    
    private Date lastModifydate;

    private Date createDate;

    private Short status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getServerId() {
        return serverId;
    }

    public void setServerId(Long serverId) {
        this.serverId = serverId;
    }
    
    public Long getSysId() {
		return sysId;
	}

	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}

	public String getRestrainName() {
        return restrainName;
    }

    public void setRestrainName(String restrainName) {
        this.restrainName = restrainName;
    }

    public BigDecimal getRestrainVal() {
		return restrainVal;
	}

	public void setRestrainVal(BigDecimal restrainVal) {
		this.restrainVal = restrainVal;
	}

	public Short getRestrainType() {
        return restrainType;
    }

    public void setRestrainType(Short restrainType) {
        this.restrainType = restrainType;
    }

    public Date getLastModifydate() {
        return lastModifydate;
    }

    public void setLastModifydate(Date lastModifydate) {
        this.lastModifydate = lastModifydate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }
    public RestrainTypeEnum getRestrainTypeEnum() {
    	return RestrainTypeEnum.valueOf(this.restrainType);
	}

	public void setRestrainTypeEnum(RestrainTypeEnum restrainTypeEnum) {
		if(restrainTypeEnum == null) {
			this.restrainType = null;
		} else {
			this.restrainType = restrainTypeEnum.getVal();
		}
	}
}